<template>
  <div class="wrap" :style="{minHeight:$store.state.minHeight+'rem'}">
    <myHead title="我的关注"></myHead>
    <EmptyState msg="还没有关注任何人喔~" v-show="userList.length < 1"></EmptyState>
    <div class="boxWrap" v-show="userList.length >= 1">
      <div class="box" v-for="x in userList">
        <img :src="x.url" alt="" class="uhead" @click="jump('lifeDynamic')">
        <div class="box-r">
          <div class="box-name"><p>{{x.name}}</p><p>已关注</p></div>
          <p class="box-qm">{{x.info}}</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  import myHead from "../../components/ClientComponents/lib/myHead";
  import EmptyState from "../../components/ClientComponents/lib/EmptyState";
  export default {
    name: "lifeMyConcerns",
    components: {
      myHead,
      EmptyState
    },
    data(){
      return {
        userList:[{name:'阿俊',url:'../../../static/img/touxiang111.png',info:'时间是一切财富中最宝贵的财富。',fans:true},{name:'阿俊',url:'../../../static/img/touxiang112.png',info:'世界上一成不变的东西，只有“任何事物世”这条...',fans:true}
          ,{name:'阿俊',url:'../../../static/img/touxiang113.png',info:'在不断变化的”这条真理。',fans:true},{name:'阿俊',url:'../../../static/img/touxiang111.png',info:'时间是一切财富中最宝贵的财富。',fans:false},{name:'阿俊',url:'../../../static/img/touxiang112.png',info:'世界上一成不变的东西，只有“任何事物世”这条...',fans:true}
          ,{name:'阿俊',url:'../../../static/img/touxiang113.png',info:'在不断变化的”这条真理。',fans:false}]
      }
    },
    methods:{
      jump(page){
        this.$router.push({
          name:page
        })
      }
    }
  }
</script>

<style scoped>
  .wrap {
    width: 100%;
    box-sizing: border-box;
    padding-top: .5rem;
    background-color: #F5F5F5;
  }

  .boxWrap {
    background-color: #FFFFFF;
    padding: 0 .15rem;
  }

  .box {
    width: 100%;
    height: .6rem;
    box-sizing: border-box;
    display: flex;
    flex-flow: row;
    align-items: center;
    border-bottom: .01rem solid #F5F5F5;
  }

  .uhead {
    width: .4rem;
    height: .4rem;
  }

  .box > img {
    margin-right: .15rem;
  }

  .box-r {
    width: calc(100% - .55rem);
    height: .4rem;
    display: flex;
    flex-flow: column;
    justify-content: space-around;
  }

  .box-name {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
  }

  .box-name > p:nth-child(1) {
    font-size: .14rem;
    font-family: PingFang SC;
    font-weight: 500;
    color: #333333;
    line-height: .14rem;
  }

  .box-name > p:nth-child(2) {
    width: .45rem;
    height: .18rem;
    border: .01rem solid rgba(170, 170, 170, 1);
    border-radius: .09rem;
    text-align: center;
    line-height: .18rem;
    color: #AAAAAA;
  }

  .box-qm {
    max-width: 2.4rem;
    font-size: .11rem;
    line-height: .11rem;
    font-family: PingFang SC;
    font-weight: 400;
    color: #888888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
</style>
